package designpattern.compoundPattern;

/**
 * 创建具有修饰器的ducks
 */
public class CountingDuckFactory extends AbstractDuckFactory {
    @Override
    public Quackable createMallardDuck() {
        return new QuackCounter(new MallarDuck());
    }

    @Override
    public Quackable createRedHeadDuck() {
        return new QuackCounter(new RedHeadDuck());
    }
//
//    @Override
//    public Quackable createDuckCall() {
//        return new QuackCounter(new DuckCall());
//    }
//
//    @Override
//    public Quackable createRubberDuck() {
//        return new QuackCounter(new RedHeadDuck());
//    }
}
